package com.example.disinfestation.service.Impl;

import com.example.disinfestation.entity.WxUser;
import com.example.disinfestation.mapper.WxUserMapper;
import com.example.disinfestation.service.WxUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class WxUserServiceImpl implements WxUserService {
    @Autowired
    WxUserMapper wxUserMapper;


    @Override
    public WxUser selectByid(String wxOpenid) {
        return wxUserMapper.selectByid(wxOpenid);
    }

    @Override
    public void insertWxUser(String username, String avatar, String wxOpenid) {
        wxUserMapper.insertWxUser(username,avatar,wxOpenid);
    }

    @Override
    public void updateWxUser(String username, String avatar, String wxOpenid) {
        wxUserMapper.updateWxUser(username,avatar,wxOpenid);
    }
}
